import { defineStore } from "pinia";

export const stockCounterStore = defineStore("stock", {
  state: () => {
    return {
      selectDate: "",
      form: {},
    };
  },
  //   getters: {
  //     doubleCount: (state) => state.count * 2,
  //   },
  actions: {
    setSelectDate(value) {
      this.selectDate = value;
    },
    setForm(value) {
      this.form = value;
    },
  },
  // 开启数据缓存
  persist: {
    enabled: true,
  },
});
